import request from '@/utils/request'
/*------get字典数据--------*/
export function getDictData(query) {
  return request({
    url: '/api/system/dictionary/',
    method: 'get',
    params: { ...query, page:1,limit: 999 }
  })
}

/*------add字典数据--------*/
export function addDictData(data) {
  return request({
    url: '/api/system/dictionary/',
    method: 'post',
    data
  })
}
/*------edit字典数据--------*/
export function editDictData(obj) {
  return request({
    url: '/api/system/dictionary/'+obj.id+'/',
    method: 'put',
    data:obj
  })
}
/*------delete字典数据--------*/
export function delDictData(pk) {
  return request({
    url: '/api/system/dictionary/'+pk+'/',
    method: 'delete',
  })
}
